<h2>Entries</h2>
<?php echo anchor('blogadmin/publish','<button>Publish</button>');?>
<?php echo anchor('blogadmin/addentry','<button>Add New Entry</button>');?>
<table cellpadding="1" class="datatable">
  <tr>
    <th>Entry Name</th>
    <th>Entry Basename</th>
    <th>Etry Parent Category</th>
    <th>Entry Author</th>
    <th>Update</th>
    <th>Delete</th>
  </tr>
  <?php 
  if($records){
  foreach ($records as $row){?>
  <tr>
    <td><?php echo $row->entry_name; ?></td>
    <td><?php echo $row->entry_basename;?></td>
    <td><?php echo $row->parent_name;?></td>
    <td><?php echo $row->entry_author;?></td>
    <td><?php echo anchor("blogadmin/updateentry/$row->entry_id","<button>Update</button>");?></td>
    <td><?php echo anchor("blogadmin/delete_entry/$row->entry_id","<button>Delete</button>");?></td>
  </tr><?php }
  }
  ?>
</table>
<?php echo anchor('blogadmin/unpublish','<button>Unpublish</button>');?>
